HEX$ Function ---------------------------------------------------------------------------- Action Returns a string that represents the hexadecimal value of the decimal argument. Syntax HEX$( numeric-expression&) Remarks The argument numeric-expression&, which has a decimal value, is rounded to an integer or, if it is outside the integer range, a long integer, before the HEX$ function evaluates it. See Also OCT$ Example The following example displays the hexadecimal value of a decimal number. CLS ' Clear screen. INPUT X A$ = HEX$(X) PRINT X; "decimal is "; A$; " hexadecimal." Output ? 32 32 decimal is 20 hexadecimal.